﻿<UserControl x:Class="XWord.GUI.Views.Words.EtymaWordExplainView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared"
             xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
             xmlns:info="http://schemas.xword.com/winfx/xaml/info"
             xmlns:local="clr-namespace:XWord.GUI.Views.Words"
             xmlns:cal="http://www.caliburnproject.org"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Expander IsExpanded="True">
        <Expander.Header>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding DataContext.DisplayName,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type local:EtymaWordExplainView}}}"/>
            </StackPanel>
        </Expander.Header>
        
            <ScrollViewer VerticalScrollBarVisibility="Auto">
            <info:EditTextBox
                cal:Message.Attach="[Event TextChanged]=[Action UpdateSelectWord]" 
                Text="{Binding SelectedItem.Suffix}"/>
            </ScrollViewer>
        
    </Expander>
</UserControl>
